package cn.sofwin.sb.service.Impl;

import cn.sofwin.sb.dao.UserDao;
import cn.sofwin.sb.entity.User;
import cn.sofwin.sb.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User findUser(Integer id) {
        User user = userDao.selectUserByid(id);
        return user;
    }
}
